const path = require('path')
const {pathAlias} = require('./my-config')

// 解决webstorm跳转问题
function resolve(dir) {
    return path.join(__dirname, dir);
}

for (let key in pathAlias) {
    pathAlias[key] = path.resolve(pathAlias[key]);
}

module.exports = {
    context: path.resolve(__dirname, './'),
    resolve: {
        extensions: ['.js', '.vue', '.json'],
        alias: pathAlias
    }
}